home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-01 / lzw4c11.zip / SAYERROR.C < prev    next >
Text File  |  1992-11-08  |  640b  |  25 lines

  1. /* sayeror.c */
  2.  
  3. #include <stdio.h>
  4. #include "LZW4C.H"
  5.  
  6. void SayError(Code)
  7. int Code;
  8. {switch(Code)
  9.   {case EXPANSION_ERROR:
  10.      puts("\nExpansion Error: Can only expand a previously compressed file");
  11.      break;
  12.    case CANNOT_ALLOCATE:
  13.      puts("\nAllocation Error: Could not allocate sufficient memory");
  14.      break;
  15.    case INTERNAL_ERROR:
  16.      puts("\nInternal Error: LZW4C object code modified !");
  17.      break;
  18.    case NOT_INITIALIZED:
  19.      puts("\nNot Initialized Error: Must run InitLZW() first");
  20.      break;
  21.    default:
  22.      printf("\nUnknown error returned = %d [%xH]\n",Code,Code);
  23.      break;
  24.   }
  25. }